home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 June: Reference Library / Dev.CD Jun 94.toast / Technical Documentation / Mac Tech Notes (DocViewer) / QuickDraw / TN-QuickDraw / TN-QuickDraw.rsrc / TOC#_1000 < prev   
Encoding:
Text File  |  1994-04-27  |  9.8 KB  |  7 lines

  1. <.QD 1 - 32-Bit QuickDraw:  Version 1.2 Features32-Bit QuickDraw%New Features (In No Particular Order)#PICTs Contain Font Name Information&Direct PixPat Structures Now Supported%Direct 'cicn' Resources Now Supported<GWorlds Can Now Be Allocated in MultiFinder Temporary MemoryIndexed to Indexed Dithering"32-Bit Addressed PixMap StructuresUpdated GetPixBaseAddress_CopyBits from Screen DevicesNew Picture Recording Trap Random NotesFurther Reference:7QD 2 - BitMapToRegion : So Many Bitmaps, So Little Time-QD 3 - Color Cursor Cursing : A Leading CauseQD 4 - Colorizing With CopyBits What HappensPossible ProblemsHow To Colorize—An ExampleFurther Reference:"QD 5 - Displaying Large PICT FilesFuture CompatibilitySpooling from a PICT fileMPW Pascal Example
  2. MPW C ExampleMore on Picture CompatibilityFurther Reference:9QD 6 - Every Picture [Comment] Tells Its Story, Don’t It?Further Reference:QD 7 - Off-Screen Bitmaps
  3. MPW PascalMPW CCommentsFurther Reference:QD 8 - Old-Style Colors Limitations
  4. What Works#What Do Those Constants Mean AnywayFigure 1—Bit DefinitionsFurther Reference:.QD 9 - Palette Manager Changes in System 6.0.2Application PaletteOne Palette, Many Ports
  5. Color Updates CopyPalette&QD 10 - Picture Comments—The Real Deal IntroductionPicture Comments Repertoire(Cohabitation of QuickDraw and PostScriptDevice-Independent Pictures-Keeping QuickDraw and PostScript Synchronized
  6. Text RotationSome Additional HintsLine Layout Control,Figure 1—Effect of the LineLayoutOff comment4Figure 2—Desired result of the LineLayoutOff commentCaveatsAnd Finally the Good NewsString Delimitation Polygon Comment FamilyEFigure 3—QuickDraw Output    Figure 4—PostScript printern printer output%Additional Comments and Explanations Caveats Dashed LinesCaveatFractional Line WidthExample•A Slight ImperfectionGraphics RotationPostScript CommentsCaveatFormsPrinting Picture Comments3(More or Less) Obsolete PostScript Picture Comments/Appendix: Pascal Interface for Picture CommentsFurther Reference:!QD 11 - Pictures and Clip RegionsFurther Reference:QD 12 - Plotting Small Icons IntroductionSICN'            FatBits'SICN' ResourceThe Right Tools for the JobPascalCThe Missing CountPascalCThe Plot 'SICN'sPascalCPascalC
  7. That Was EasyFurther Reference:2QD 13 - Principia Off-Screen Graphics Environments
  8. Off-ScreeningThe Building Blocks
  9. The CGrafPort
  10. The PixMap The GDevice>Figure 1  Conversion of RGBColor Record to Inverse-Table IndexAll Together NowAFigure 2  Relationships Between Structures for Off-Screen DrawingBuilding the BlocksBuilding the CGrafPortMPW Pascal Listing 1MPW C Listing 1Building the PixMapMPW Pascal Listing 2MPW C Listing 2Building the GDeviceMPW Pascal Listing 3MPW C Listing 3
  11. All Fall DownMPW Pascal Listing 4MPW C Listing 4Playing With BlocksMPW Pascal Listing 5MPW C Listing 5Put That Checkbook Away!About That Creation Thing . . .MPW Pascal Listing 6MPW C Listing 6Changing Your EnvironmentMPW Pascal Listing 7MPW C Listing 7#Changing the Off-Screen Color TableFollow That Screen!MPW Pascal Listing 8MPW C Listing 8Choosing Your Off-Screen MemoryMPW Pascal Listing 9MPW C Listing 9The GWorld FactorMPW Pascal Listing 10MPW C Listing 10I Want the Best Performance!HI Want to Use a NuBus Memory Card for My GWorld’s Off-Screen Pixel Image9I Want My Program to Work on All System Software ReleasesAre We There Yet?Further Reference:/QD 14 - QuickDraw’s Internal Picture DefinitionTermsNotesFurther Reference:QD 15 - RowBytes Revealed II Introduction$Largest size of rowBytes of a pixMap3 Types of BitMap Parameters
  12. The BitMap
  13. The PixMapThe portBits of a CGrafPort%Figure 1. CopyBit's BitMap parametersWhy Large PixMaps Crash Apps0Identifying CGrafPorts and GWorlds in a DebuggerEven or odd rowBytes?Going Around The Limit TodayGoing Around The Limit Tomorrow
  14. ConclusionFurther Reference:4QD 16 - 8•24 GC QuickDraw and Deaccelerated CopyBits Introduction._CopyBits Conforms To The Same Scheme, Except…Further Reference:QD 17 - Drawing IconsFurther Reference:&QD 18 - Drawing Icons the System 7 Way IntroductionThe New 'ic' Type ResourcesCIcon Families (or Suites and Caches As the Tool Set Refers to Them)Drawing Modes or Transforms    Alignment5And Now (Drum Roll Please) the Calls and What to PassIcon Family CallsIcon Cache Calls"Plotting Icons Not Part of a SuiteMiscellaneous Calls Error Codes$Type(def)s and Glue for Pascal and CFurther Reference:5QD 19 - Fixed CLUT Devices and the Single Techno Nerd IntroductionSo What!4• Non-Color-Intensive Applications Need Not to Worry• Color-Enhanced Applications• Color-Intensive Applications
  15. In ConclusionFurther Reference:LQD 20 - _PackBits : Things You Wanted to Know About* *But Were Afraid to AskLength Doesn’t Matter$Mommy, How Do They Make Packed Bits?Further Reference:'QD 21 - Of Time and Space and _CopyBits)Can You Influence the Speed of _CopyBits?$Influences on the Speed of _CopyBitsDimensions of the Copied Area5Shape and Size of the Clip, Visible, and Mask RegionsTransfer Modes ColorizationPixel Alignment$Figure 1–offscreen Needs RealignmentFigure 2–offscreen Aligned Speed of the Hardware, Of CourseDepth of Pixel Maps
  16. Color MappingThe ctSeed FieldThe ctFlags FieldSequential Color TablesIndexed Color Tables"Color Mapping or Non-Color MappingScalingOf Time and SpaceFurther Reference:QD 505 - Basic QuickDraw Q&As5Determining whether CopyBits to a PICT was successful,Random function requires prior InitGraf call6GetIconCacheData & SetIconCacheData bug and workaround2DrawText and DrawString patched to be script awareQuickDraw globals at INIT time-Macintosh QuickDraw LineTo bug and workaround7Use crsrNew flag to unobscure cursor without mouse move+Macintosh CalcMask and CopyMask code sample1Code for filling an area fully bounded by polygon8Inside Macintosh Vol. V PICT opcode size should be fixed2PICTs with PostScript PICT comments and memory use&Where CopyBits looks for memory to use!GrafPort patStretch: valid values,How to tell whether GetPictInfo is available8Detecting whether application window is partially hiddenCopyBits bug and workaroundMacintosh animation samples'System 7 QuickDraw DrawText performance3Updating Macintosh cursor without mouse competition%Techniques for graying Macintosh text7Use srcOr instead of srcCopy for Macintosh text drawing(Code for reversing Macintosh PICT images*Using dithered drawing mode with QuickDraw Using PicComments to rotate text;Why grafPort’s clipRgn should be changed before OpenPicture'Calling InitCursor instead of SetCursor'Macintosh PICT-to-PostScript conversion2Sending PostScript via PostScriptHandle PicComment!Macintosh QuickDraw region quirks,How to get Macintosh QuickDraw arc endpointsQD 510 - Color Manager Q&As*Using ResEdit to get Apple icon RGB values.Macintosh Color Manager versus Palette ManagerQD 515 - Color QuickDraw Q&As7Color QuickDraw not available to 68000 Macintosh models&Check 'cicn' ID if menu icons are tiny!Color QuickDraw and large pixmaps Animation speed on the Macintosh5Inside Macintosh Volume V PnPixPat & BkPixPat doc fix/Disabling Macintosh Color QuickDraw for testing?Using a Macintosh PICT file that’s larger than available memory+Getting a single scan line from a PICT file'Determining pixel depth from PICT files4BitMapToRgn for non-Color QuickDraw Macintosh models0Macintosh QuickDraw pixel map stack requirements7Color and non-Color QuickDraw trap dispatch differences-Macintosh OpenCPicture 72-dpi calculation bug"GetGWorldPixMap bug and workaround(System 7 TextMode problem and workaround9Using dithering and animation on the same Macintosh image6Rendering color PICTs in a black-and-white environment;Highlighting ignored if foreground same as background color*Gestalt 'qdrw' selector bug and workaround GetPixelsState is slow sometimes(OpenCPicture and PICTs other than 72 dpi+No System 7 QuickDraw alpha channel support$BitsToRgn and MPW BitMapToRegionGlue+Ensuring even rowBytes for 'cicn' resources;CopyBits blend mode: OpColor’s affect & eliminating banding(Icon dimming under System 7 and System 68QuickDraw out of memory if debugger invoked by “Jackson”6ditherCopy not supported on LaserWriter or ImageWriter;Macintosh Color QuickDraw CalcCMask and SeedCFill clarified(Macintosh PICT color picture file format<Mac pixmap is clipped to visRgn defined by screenBits.bounds;Using Macintosh System 7 OpenCPicture for higher resolution(How to identify 32-Bit QuickDraw version6Macintosh QDError function under System 6 and System 76Macintosh CopyBits transfer modes changed for System 7+Which QuickDraw versions support SetEntries+Macintosh pixel map maximum rowBytes change3Use assembly to flip a 24-bit off-port color pixmap7Why PlotCIcon requires GetCIcon instead of Get1Resource,How Macintosh system draws small color icons8Spooling and preserving Macintosh QuickDraw pixmap depth$Determining the resolution of a PICTQD 520 - ColorSync Q&As CWNewColorWorld CWorld parameter CMProfileResponse data structureColorSync documentation&How Apple Color Printer uses ColorSync+ColorSync 1.0.2 fixes kNumColorsToMatch bugColorSync responders:MatchColors and profile handles for CMYK or RGB conversion!QD 525 - LaserWriter Utility Q&As9SCSI drive format for LaserWriter II NTX with Rev. 3 ROMs:LaserWriter Font Utility copies Postscript file to printerQD 530 - Palette Manager Q&As6GetNewPalette and default palette documentation update:SetPalette cUpdates, NSetPalette, and window update events;Restoring Finder desktop colors after using Palette Manager8RestoreDeviceClut and color flash when application quits0Macintosh Palette Manager and offscreen graphicsQD 535 - Picture Utility Q&As/GetPictInfo and QuickTime compressed PICT files7NewPalette doesn’t use CTab2Palette to create a paletteSpooling PixMaps to disk5Getting the color usage from a picture under System 6QD 540 - QuickDraw GX Q&As&QuickDraw GX doesn’t replace QuickDraw4QuickDraw GX and QuickDraw accelerated display cards